package old.proxy.demo;

public class Proxy implements RentAble {

    Host host;

    public Proxy(Host host) {
        this.host = host;
    }

    @Override
    public void rent() {
        seeHouse();
        host.rent();
        contract();
        fee();
    }

    void seeHouse() {
        System.out.println("中介带看房");
    }
    void contract() {
        System.out.println("签合同");
    }
    void fee() {
        System.out.println("收中介费");
    }
}
